package com.ruoyi.exam.domain.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.exam.domain.vo.ExamGeneratingPaperVO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 *
 * @ClassName ExamineReq
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @Author luqian
 * @Date 2024/11/22 3:29 PM
 * @Copyright 八维
 * @Version V1.0.0
 */
@Data
public class ExamineReq {
   /**试卷id*/
   private Long id;
   /**组卷信息*/
   @NotEmpty(message = "组卷信息不能为空")
   private List<ExamGeneratingPaperVO> examGeneratingPaperList;

   @NotBlank(message = "考试名称不能为空")
   private String examName;

   @NotBlank(message = "考试描述不能为空")
   private String examDescribe;
   @NotNull(message = "考试总分不能为空")
   private Long totalPoints;

   @NotNull(message = "考试及格分数不能为空")
   private Long passMark;

   @NotNull(message = "考试时长不能为空")
   private Long examDuration;

   /**是否限时考试(0 否 1 是)*/
   private Integer isTimeLimit;

   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   private Date examStartTime;
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   private Date examStopTime;


   /**考试类型(0 完全开放 1 指定部门)*/
   @NotNull(message = "考试类型不能为空")
   private Long examType;


   private String deptIds;





}
